import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";

@Schema()
export class Todo {
  @Prop()
  title: string

  @Prop()
  content: string

  @Prop()
  isDone: boolean
}


export const TodoSchema = SchemaFactory.createForClass(Todo)
